﻿namespace YidanSoft.Library.EditorUtility.Menus
{
    using System;
    using System.Collections;
    using System.Windows.Forms.Design;

    public class MenuControlDesigner : ParentControlDesigner
    {
        public override ICollection AssociatedComponents
        {
            get
            {
                if (base.Control is MenuControl)
                {
                    return ((MenuControl) base.Control).MenuCommands;
                }
                return base.AssociatedComponents;
            }
        }

        protected override bool DrawGrid
        {
            get
            {
                return false;
            }
        }
    }
}

